package school;

public class Hq1 {
	private String name;

	public Hq1(String name) {
		super();
		this.name = name;
	}

	public void judge(JavaTeacher j) {
		j.selfIntro();
		j.giveLession();
		System.out.println("总部来的" + name + "觉得" + j.getName() + "还不错");
	}

	public void judge(DBTeacher j) {
		j.selfIntro();
		j.giveLession();
		System.out.println("总部来的" + name + "觉得" + j.getName() + "还凑合");
	}

	public void judge(DocNetTeacher j) {
		j.selfIntro();
		j.giveLession();
		System.out.println("总不来的" + name + "觉得" + j.getName() + "不错");
	}

	public static void main(String[] args) {
		Hq1 h = new Hq1("孙爱国");
		JavaTeacher j = new JavaTeacher("老谢", "合肥科海中心");
		DocNetTeacher j2 = new DocNetTeacher("小郭", "合肥科海中心");
		h.judge(j);
		h.judge(j2);
		DBTeacher j3 = new DBTeacher("小王", "合肥科海中心");
		h.judge(j3);
	}
}
